package com.pda.yuanjing.pages.tpzz;

import com.pda.yuanjing.beanout.TPBeanOut;
import com.pda.yuanjing.thread.CodeBeans;
import com.public_module.basemvp.present.BasePresenter;

public class ScanfPresent extends BasePresenter<ScanfModel, ScanfView> implements ScanfModel.CallBack {

    public void scanfCodeNobill(String  tuoCode,  String code ,CodeBeans codeBeans){
        model.scanfCodenobill(tuoCode,  code,codeBeans,this);
    }

    @Override
    public void onshowres(String str) {
        if(view!=null)
        {
            view.hideProgress();
            view.showres(str);
        }
    }

    @Override
    public void onshowSuccessresNoBill(TPBeanOut dataBean) {
        if(view!=null)
        {
            view.hideProgress();
            view.onshowSuccessresNoBill(dataBean);
        }
    }
}


